<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<html lang="zh-cmn">
<head>
    <%@include file="/WEB-INF/pages/header.jsp"%>
    <style>
        #table_enterResult tr td{
            border:1px solid #000;
            height: 35px;
        }
    </style>
</head>
<body>
<c:set var="tr" value="${treatment}"/>
<div class="container">
    <div class="col-md-4">
        <table data-striped="true"
               data-toggle="table" class="text-center">
            <thead>
                <tr>
                    <th>病例号</th>
                    <th>患者姓名</th>
                    <th>就诊时间</th>
                    <th>是否完成</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>${caseNo}</td>
                    <td>${tr.member.memberName}</td>
                    <td>${tr.startTime}--${tr.endTime}</td>
                    <td>${tr.treatmentState==0?'否':tr.treatmentState==1?'是':''}</td>
                </tr>
            </tbody>

        </table>
    </div>
    <div class="col-md-8" style="border-left:2px solid #ccc;">
        <div style="width:100%;margin-top:10px;">
            <div class="pull-right">
                <a onclick="addCase()" class="btn btn-danger">保存</a>
                <a onclick="" class="btn btn-primary">打印</a>
            </div>
        </div>
            <div style="width:100%;margin-top:60px;">
                <form id="caseForm" class="form-horizontal">
                <table id="table_enterResult" style="margin:0 auto;border:1px solid #ccc;width:100%;">
                    <tr>
                        <td style="width:100px;text-align:right;background: #ccc;">病例号:</td>
                        <input type="hidden" name="treatmentId" value="${tr.treatmentId}"/>
                        <input type="hidden" name="memberId" value="${tr.memberId}"/>
                        <input type="hidden" name="caseStatus" value="${tr.treatmentState}"/>
                        <input type="hidden" name="caseRegFee" value="${tr.reservation.registryFee}"/>
                        <input type="hidden" name="userId" value="${tr.userId}"/>
                        <input type="hidden" name="cassReviewSMSSend" value="${count}"/>
                        <input type="hidden" name="caseNo" value="${caseNo}"/>
                        <td style="width:100px;"><span>${caseNo}</span></td>
                        <td style="width:100px;text-align:right;background: #ccc;">患者姓名:</td>
                        <td style="width:100px;"><span>${treatment.member.memberName}</span></td>
                    </tr>
                    <tr>
                        <td style="width:100px;text-align:right;background: #ccc;">性别:</td>
                        <td style="width:100px;"><span>${tr.member.memberSex==1?'男':tr.member.memberSex==0?'女':''}</span></td>
                        <td style="width:100px;text-align:right;background: #ccc;">出生日期:</td>
                        <td style="width:100px;"><span>${tr.member.memberBirthday}</span></td>
                    </tr>
                    <tr>
                        <td style="width:100px;text-align:right;background: #ccc;">就诊日期:</td>
                        <td colspan="3" style="width:100px;">
                            <span>${tr.treatmentDate}</span>
                        </td>
                    </tr>
                    <tr>
                        <td style="width:100px;text-align:right;background: #ccc;">就诊项目:</td>
                        <td colspan="3" id="jiuzhen">
                            <div style="margin:10px 0;" class="form-group">
                                <label class="col-md-1 control-label text-right">1、</label>
                                <div class="col-md-7">
                                <input  style="margin-left:15px;" onfocus="showValue(this)" class="form-control" type="text"/>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td style="width:100px;text-align:right;background: #ccc;">诊断:</td>
                        <td colspan="3" id="zhenduan">
                            <div   class="form-group"  >
                                <div class="col-md-6" style="margin:10px 0;">
                                    <input  style="margin-left:15px;" onfocus="showValue2(this)" class="form-control" type="text"/>
                                </div>
                                <div class="col-md-6" style="margin:10px 0;">
                                    <button  class="btn btn-danger" type="button">删除</button>
                                </div>
                            </div>
                        </td>
                    </tr>
                  <%--  <tr>
                        <td style="width:100px;text-align:right;background: #ccc;">主诉:</td>
                        <td colspan="3" class="form-group">
                            <div class="col-md-10">
                            <textarea cols="55" class="form-control" name="aa" placeholder="输入文字..." style="margin:8px 0 8px 15px;"></textarea>
                            </div>
                        </td>
                    </tr>--%>
                     <%--<tr>
                         <td style="width:100px;text-align:right;background: #ccc;">检查:</td>
                         <td colspan="3"  class="form-group">
                             <div style="margin:25px 0 0 15px;" >
                                 <div style="float:left;">查体:</div>
                                 <div style="float:left;margin-left:15px;" class="col-md-10" >
                                     <textarea cols="55" class="form-control" name="aa" placeholder="输入文字..."></textarea>
                                 </div>
                             </div>
                             <div style="margin:60px 0 0px 15px;">
                                 <div style="float:left;clear:both;margin-top:15px;">影像:</div>
                                 <div style="float:left;margin-left:15px;width:400px;margin-bottom:25px;margin-top:15px;">
                                     <table style="width:300px;">
                                         <tr>
                                             <td style="background:#11aaaa;width:80px;text-align:center;">影像资料:</td>
                                             <td colspan="2"><a href="">查看</a></td>
                                         </tr>
                                         <tr>
                                             <td style="background:#11aaaa;width:80px;text-align:center;">检查所见:</td>
                                             <td colspan="2"></td>
                                         </tr>
                                         <tr>
                                             <td style="background:#11aaaa;width:80px;text-align:center;">检查诊断:</td>
                                             <td colspan="2"></td>
                                         </tr>
                                     </table>
                                 </div>
                             </div>
                         </td>
                     </tr>--%>

                   <%-- <tr>
                        <td style="width:100px;text-align:right;background: #ccc;">治疗项目:</td>
                        <td colspan="3"  class="form-group">
                            <div class="zhiliao">
                                <div class="col-md-6" style="margin:10px 0;">
                                    <input  style="margin-left:15px;" class="form-control" type="text"/>
                                </div>
                                <div class="col-md-6" style="margin:10px 0;">
                                    <button  class="btn btn-danger" type="button">删除</button>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td style="width:100px;text-align:right;background: #ccc;">选择治疗套餐:</td>
                        <td colspan="3"  class="form-group">
                            <div class="col-md-5 xpart" style="margin:10px 0;">
                                <select style="margin-left:15px;" name="dictionary" class="form-control">
                                    <option value="-1">请选择部位</option>
                                </select>
                            </div>
                        </td>
                    </tr>--%>
                    <%--<tr>
                        <td style="width:100px;text-align:right;background: #ccc;">所需的辅助仪器:</td>
                        <td colspan="3" >
                            <div>
                                <div style="border-right:1px solid #ccc;">
                                    <div>
                                        <div class="col-md-5 xpart" style="margin:10px 0;">
                                             <select style="margin-left:15px;" name="dictionary" class="form-control">
                                                <option value="-1">请选择部位</option>
                                                </select>
                                        </div>
                                        <div class="col-md-5" style="margin:10px 0;">
                                            <select style="margin-left:15px;" class="form-control">
                                                <option value="-1">请选择仪器</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div style="clear:both;">
                                        <div class="col-md-1"></div>
                                        <div style="margin:10px 0;">
                                            <label >剩余数量 : </label><span>X</span><span style="font-weight:bold;">台，</span>
                                            <label >所需数量 : </label><input type="number" style="width:45px"/>
                                            <button class="btn btn-primary" style="margin-left:15px;" type="button">确定</button>
                                        </div>
                                    </div>
                                </div>

                            </div>
                            <hr/>
                            <div>
                                <div class="text-center" style="word-break:break-all;">
                                    <p><111111110000000</p>
                                </div>
                                <div class="text-center">
                                    <label class="control-label">X</label><span style="font-weight: bold"> 台</span>
                                </div>
                            </div>
                        </td>
                    </tr>--%>
                    <tr>
                        <td style="width:100px;text-align:right;background: #ccc;">是否需要复查:</td>
                        <td colspan="3"  class="form-group">
                            <div>
                                <input type="hidden" name="caseReview"/>
                             <input style="margin-left:15px;"  type="checkbox" id="fucha"/>&nbsp;<label class="control-label" for="fucha">是</label>
                            </div>
                        </td>
                    </tr>
                    <tr style="display: none;" id="fuchaDate">
                        <td style="width:100px;text-align:right;background: #ccc;">建议复查日期:</td>
                        <td colspan="3" class="form-group">
                            <div class="col-md-6" style="margin:10px 0;">
                                 <input class="form-control" name="caseReviewDate" style="margin-left:15px;" type="date"/>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td style="width:100px;text-align:right;background: #ccc;">建议:</td>
                        <td colspan="3" class="form-group">
                            <div class="col-md-10">
                                <textarea cols="55" class="form-control" name="caseSug" placeholder="输入文字..." style="margin:8px 0 8px 15px;"></textarea>
                            </div>
                        </td>
                    </tr>
                </table>
                </form>
        </div>
    </div>
</div>



<%@include file="/WEB-INF/pages/footer.jsp"%>
<script src="${ctx}/res/js/caseEnter.js"></script>
</body>
</html>